﻿package bdz.common.utils {
	import flash.utils.Dictionary;
	
	/**
	 * ...
	 * @author Donald
	 */
	public dynamic class SystemCache extends Dictionary {
		private static var instance:SystemCache;
		
		function SystemCache(se:SingletonEnforcer) {
			super();
		}
		public static function getInstance():SystemCache {
			if(instance == null){
				instance = new SystemCache(new SingletonEnforcer());	
			}
			return instance;
		}
		public function addItem(key:Object, value:*):void {
			this[key] = value;
		}
		public function getItem(key:Object):*{
			return this[key];
		}
	}
	
}
internal class SingletonEnforcer {}